<?php
session_start();
if(!isset($_SESSION['username']))
{
	if(isset($_SESSION['fail']))
	{
		header("location:index.php?login=fail");
	}
	else {
		header("location:index.php");
	}
	//some comments
}
?>
